package iReportDemo;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;

import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;

public class TestIReport {
	public static void main(String[] args) throws SQLException {
		/*JasperReportWrapper wrapper = new JasperReportWrapper();
		Connection connection = wrapper.connectToDB();
		JasperReport compiledReport = wrapper.compileJRXMLFile();
		Map<String, Object> parameters = new HashMap<String, Object>();
		parameters.put("studentid", 1);
		JasperPrint jasperPrint = wrapper.fillReport(compiledReport, parameters, connection);
		wrapper.saveReportInPDF(jasperPrint, "Reports\\MyReports\\MyFirstReport.pdf");*/
		
	}

}
